<html>
<head th:include="/views/mobile/partial/head"></head>

<body>
  
  <section th:replace="/views/mobile/partial/header(title='评测')"></section>

  <section th:replace="/views/mobile/partial/cover"></section>
  
  <div class="wrap-container">
    <section th:replace="/views/mobile/partial/nav"></section>

    <section th:replace="/views/mobile/partial/products_container"></section>

     <section th:replace="/views/mobile/partial/toTop"></section>
  </div>


    
    <!-- dilog model end -->
  <script th:replace="/views/mobile/partial/script"></script>

  <script type="text/javascript">
  var pageNo = 1;
  var targetUrl = "/faxsun-info/product-json/list";
  var postJson = {};
  $(function(){
        set_cover_toggle();
        hideOrShowTotop(); 
        init_nav();
        //对于不同的标签，加载不同的产品
        if($(".swiper-wrapper > .swiper-slide >a.selected").size()){

            var tagIds = $(".swiper-wrapper > .swiper-slide >a.selected").attr("href").split("=")[1];
            postJson.tagIds =  tagIds;
            targetUrl = "/faxsun-info/product/json";
        }

        $(window).scroll(function() {
           if($(window).scrollTop() + $(window).height() > $(document).height() - 100) {
                pageNo++;
                postJson.pagNo =  pageNo;
                $.ajax({     
                    url:targetUrl,     
                    type:'post',     
                    data:postJson,    
                    error:function(){   
                       alert('error');     
                    },     
                    success:function(data){ 
                        var jsonData =  $.parseJSON(data);
                        loadMoreProducts(jsonData);
                    }  
                });
           }
        });
  });

  </script>
</body>
</html>
